package com.hong.concurrent.chapter4;

import java.util.Observable;

/**
 * @Author csh
 * @Description 被观查者
 * @Date 2018/6/30 11:22
 */
public class OctalObServer  extends Observer  {

    public OctalObServer(Subject subject)
    {
        super(subject);
    }

    @Override
    public void update() {
        System.out.println("Octal String:"+Integer.toOctalString(subject.getState()));
    }
}
